// 基于template/src/widgets/{{appEntities}}/{{ctrls@CALENDAR}}-calendar/{{spinalCase ctrl.codeName}}-calendar-vo.ts.hbs生成
import { ControlVOBase } from '@/core';

class Item1ControlVO extends ControlVOBase {

    /**
    * 实体主键属性
    *
    */
    protected readonly srfkey = 'ibizbookid';

    /**
    * 项标识
    *
    */
    protected readonly itemType = 'item1';  

    constructor(data: any){
        super(data);
        //  日历项自持属性
        this.$ownKeys = ['ibizbook', 'array', 'createman', 'ibizbookname', 'ibizbookid', 'createdate', 'updateman', 'updatedate', 'author', 'price', 'press', 'type', 'booknumber', 'subtext', 'lendouttime', 'returntime', 'icon', 'sailstate', 'borrowstatus', 'stepstatus', 'borrower', 'borrowway', 'returnlib', 'borrowerid', 'borrower1', 'borrower1id', 'borrower2', 'borrower2_id', 'borrower3', 'borrower3_id', 'tag'];
    }
    get title() {
        return this.$DO.ibizbookname;
    }
    set title(value: any) {
        this.$DO.ibizbookname = value;
    }
    get start() {
        return this.$DO.lendouttime;
    }
    set start(value: any) {
        this.$DO.lendouttime = value;
    }
    get end() {
        return this.$DO.returntime;
    }
    set end(value: any) {
        this.$DO.returntime = value;
    }

    set ibizbook(value: any) {
        this.$DO.ibizbookid = value;
    }
    get ibizbook() {
        return this.$DO.ibizbookid;
    }
}

export const CalendarControlVO = [{ name: 'Item1ControlVO', controlVO: Item1ControlVO }]